package com.xiaoshuidi.cloud.module.finance.enums.finance;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 支付通道类型
 */
@AllArgsConstructor
@Getter
public enum PayChannelTypeEnum {
    TongLian("TongLian","通联"),
    TongShangYun("TongShangYun","通商云")
    ;


    private final String code;
    private final String desc;


    public static String getDesc(String name) {
        for (PayChannelTypeEnum value : values()) {
            if (value.name().equals(name)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
